'''
Created on Feb 15, 2013

@author: dmatthews
'''

#def enum(*sequential, **named):
#    enums = dict(zip(sequential, range(len(sequential))), **named)
#    return type('Enum', (), enums)
#
#MSG_TYPE = enum('CHAT_BROADCAST', 'PLAYER', 'SERVER', 'ACTION')
#ACTION = enum('HIT_ME', 'STAND')

#Message Types
MSG_CHAT_BROADCAST = 0
MSG_PLAYER = 1
MSG_SERVER = 2
MSG_ACTION = 3

ACTION_HITME = 4

OBJ_CARD = 5

PLAYER_INIT = 100
AUTH_INIT = 101
AUTH_USER_AUTHENTICATED=102
AUTH_USER_NOT_AUTHENTICATED=103

DECKSIZE = 6

#CARD INIT TUPLES
face = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
suit = (0, 1, 2, 3)

#CARD DISPLAY TUPLES
values = (11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10)
faces = ('A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K')
suits = ('Clubs', 'Spades', 'Hearts', 'Diamonds')

#CARD RENDER DEFAULTS
CARD_WIDTH = 71
CARD_HEIGHT = 96
X_INDEX_MULT = 73
Y_INDEX_MULT = 98

        
    